/*
 *  Add.hpp
 *  Add
 *
 *  Created by user on 16/12/30.
 *  Mac OSX下使用Xcode生成动态链接库dylib
 *
 */

#ifndef _Add_H
#define _Add_H

/* The classes below are exported */
// #pragma GCC visibility push(default)


#ifdef WIN32
    #ifdef ADD_EXPORTS
        #define ADD_API __declspec(dllexport)
    #else
        #define ADD_API __declspec(dllimport)
        #pragma comment (lib, "Add.lib")
    #endif // End of ADD_EXPORTS
#else  // End of WIN32
    #ifdef __GNUC__
        #if (__GNUC__ >= 4)
            #define ADD_API __attribute__((visibility("default")))
        #else
            #define ADD_API
        #endif
    #else
        #define ADD_API
    #endif
#endif


class ADD_API Add
{
public:
    Add();
    ~Add();
    int Sum(int a, int b);
};

// #pragma GCC visibility pop
#endif

